const path = require('path'),
	  config = require(path.join(__dirname, '../config.js')),
	  redis = uniCloud.redis()

async function main(event) {
	let redisList = await redis.keys("*")
    return {
		"code":200,
		"data":{
			list:redisList,
			total:redisList.length
		},
		"msg":"success"
	}
}

module.exports = main